﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Brjostagjof.Models.ArticleViewModel>" %>
        
        <%: Html.ValidationSummary(true) %>
        <div>   
            <%: Html.LabelFor(model => model.article.Title) %><br />
            <%: Html.TextBoxFor(model => model.article.Title) %>
            <%: Html.ValidationMessageFor(model => model.article.Title) %>
        </div>
        <div>
            <%: Html.LabelFor(model => model.article.Category) %><br />
            <%: Html.DropDownListFor(model => model.article.Category, new SelectList(Model.categories, "Category1", "Category1"))%>
            <%: Html.ValidationMessageFor(model => model.article.Category ) %>
        </div>
        <div>
            <%: Html.LabelFor(model => model.article.Body) %>
            <%: Html.TextAreaFor(model => model.article.Body, new { @id = "Editor1", @class = "ckeditor" })%>
            <%: Html.ValidationMessageFor(model => model.article.Body) %>
        </div>

        <p>
            <input type="submit" value="Samþykkja" />
        </p>